import 'package:flutter/material.dart';

class MinePage extends StatelessWidget {
  const MinePage({super.key});

  Widget rowText(String text) {
    Widget body = Text(
      text,
      style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
    );

    body = Center(child: body);
    body = Container(
        width: double.infinity,
        height: 40,
        margin: const EdgeInsets.only(top: 10),
        color: Colors.brown,
        child: body);

    return body;
  }

  List<Widget> get rowTextList => [
        rowText('MinePage1'),
        rowText('MinePage2'),
        rowText('MinePage3'),
        rowText('MinePage4'),
        rowText('MinePage5'),
        rowText('MinePage6'),
        rowText('MinePage7'),
        rowText('MinePage8'),
        rowText('MinePage9'),
        rowText('MinePage10'),
        rowText('MinePage11'),
        rowText('MinePage12'),
        rowText('MinePage13'),
        rowText('MinePage14'),
        rowText('MinePage15'),
        rowText('MinePage16'),
        rowText('MinePage17'),
        rowText('MinePage18'),
        rowText('MinePage19'),
        rowText('MinePage20'),
      ];

  Widget body() {
    Widget body = Column(
      crossAxisAlignment: CrossAxisAlignment.center,
      children: rowTextList,
    );
    body = ListView(children: rowTextList);
    return body;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(body: body());
  }
}
